Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added an epsilon to the inside diameter of the rings to prevent bolts through holes resulting in 'WARNING: CSG normalisation resulted in empty tree'; switched to using cubes for hexagons; added 626 bearing size; #16

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

McNeight
Copy link

No description provided.

Copy link

@hyperair hyperair left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally okay except for the comments I left

@@ -194,36 +231,38 @@ function motorLength(model=Nema23, size=NemaMedium) = lookup(size, model);

module motor(model=Nema23, size=NemaMedium, dualAxis=false, pos=[0,0,0], orientation = [0,0,0]) {

length = lookup(size, model);
motorDef = NemaDefinitions[model];

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like this changes the format of the model parameter from the motor definition structure to an array index. This isn't acceptable because it'll break many designs floating around the internet that use this module.

@@ -194,36 +231,38 @@ function motorLength(model=Nema23, size=NemaMedium) = lookup(size, model);

module motor(model=Nema23, size=NemaMedium, dualAxis=false, pos=[0,0,0], orientation = [0,0,0]) {

length = lookup(size, model);
motorDef = NemaDefinitions[model];
echo(NemaDefinitions[14]);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This echo shouldn't be here, I think.

module nutHole(size, units=MM, tolerance = +0.0001, proj = -1)
{
//takes a metric screw/nut size and looksup nut dimensions
radius = METRIC_NUT_AC_WIDTHS[size]/2+tolerance;
height = METRIC_NUT_THICKNESS[size]+tolerance;
radius = METRIC_NUT_AC_WIDTHS[size]+2*tolerance;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
radius = METRIC_NUT_AC_WIDTHS[size]+2*tolerance;
width = METRIC_NUT_AC_WIDTHS[size]+2*tolerance;

This isn't really a radius any more.

if (proj == -1)
{
cylinder(r= radius, h=height, $fn = 6, center=[0,0]);
translate([0,0,(height/2)-tolerance]) hexagon(height=radius, depth=height);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
translate([0,0,(height/2)-tolerance]) hexagon(height=radius, depth=height);
translate([0,0,(height/2)-tolerance]) hexagon(height=width, depth=height);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants